from DrissionPage import ChromiumPage, ChromiumOptions


def page_get_no(local_port=9769, user_data_path=r'C:\Users\79100\AppData\Local\Google\Chrome\User Data'):
    co = ChromiumOptions()
    co.set_paths(local_port=local_port, user_data_path=user_data_path)
    # co.no_imgs(True)
    # co.headless()
    page = ChromiumPage(co)
    downpath = r'C:\filedownloads'
    page.set.download_path(downpath)
    return page
